import React, { Component } from 'react'
import { BrowserRouter } from "react-router-dom"

// 引入路由配置表和路由展示页面 
import routerConfig from './router/routerConfig';
import RouterView from "./router/RouterView"
export class App extends Component {
  render() {
    return (
      <BrowserRouter>
      {/* ❤ 一级路由：整个页面都切换  */}
        <RouterView routerConfig={routerConfig}></RouterView>
      </BrowserRouter>
    )
  }
}

export default App